CXX=g++
CXXFLAGS=-O1
LIBS=../agg-2.5/src/

SRC_CXX=\
replotAgg.cpp \
SphData.cpp \
AggPlotter.cpp \
utils.cpp

OBJ=$(SRC_CXX:.cpp=.o)

all: $(OBJ)
	$(CXX) $(OBJ) -o replotAgg.exe  -lagg -L$(LIBS)

%.o: %.cpp
	$(CXX) -I"../agg-2.5/include" -c $(CXXFLAGS) $*.cpp -o $@

clean:
	rm -f *.o
